package cn.wolfcode.crm.qo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter
@Setter
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 5;
    private String keyword;

    public String getKeyword(){
        return StringUtils.hasLength(keyword)?keyword.trim():null;
    }
    public int getStart(){
        return (currentPage - 1) * pageSize;
    }
}
